package com.amon.amonplayer.watchdog;

import android.os.HandlerThread;
import android.os.Looper;

import java.util.concurrent.ExecutorService;

public class ThreadManager {
    private static Looper ANR_WATCHDOG_LOOPER = null;
    private static volatile ExecutorService mExecutor;

    public static Looper getAnrWatchDogLooper() {
        if (ANR_WATCHDOG_LOOPER == null) {
            synchronized (ThreadManager.class) {
                if (ANR_WATCHDOG_LOOPER == null) {
                    HandlerThread handlerThread = new HandlerThread("ANR_WATCHDOG");
                    handlerThread.start();
                    ANR_WATCHDOG_LOOPER = handlerThread.getLooper();
                }
            }
        }
        return ANR_WATCHDOG_LOOPER;
    }

    public static void run(Runnable runnable) {

    }
}
